package ${packageStr};

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import com.ruoyi.domain.OrderEntity;

import ${entityPath};

/**${entity.tableComment} Service接口*/
public interface ${serviceName} extends IService<${entityName}>{
      /**分页查询*/
      IPage<${entityName}>  pageList(com.baomidou.mybatisplus.extension.plugins.pagination.Page<${entityName}> page,${entityName} entity, OrderEntity orderEntity);
     /**带条件查询*/
      List<${entityName}> list(${entityName} entity);

    // List<${entityName}> listOfIds(java.util.Collection<${idType}> ids);
   // /***
   // *用于页面选择
   // */
   // List<${entityName}> listOfSelect(${entityName} entity);
      /**条件查询只返回一条数据的方法*/
      ${entityName}       getOne(${entityName} entity);

       Integer countId(${entityName} entity);
      /**插入有值的列  */
      int insertSelective(${entityName} entity);
       /***插入数据*/
      boolean insert(${entityName} entity);
       /**根据主键修改数据*/
      boolean  updateByPrimaryKey(${entityName} entity);

      <#if "${statucFlag}" !="1">
        boolean deleteById(${idType} ${idFiled});
      </#if>
}